﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TRINHTUNGLAM.OOP.EX4
{
    class MODELS
    {
        public string ketquaModels(ENTITY objEntity,int opt, int gt)
        {
            string kq = "";
            switch(gt)
            {
                case 0 : switch(opt)
                        {
                            case 0: if (objEntity.tuoi >= 22) kq = " Nam duoc phep tham gia";
                                else kq = "Nam khong duoc phep tham gia"; break;
                            case 1: kq = " Da lap gia dinh khong tham gia";break; 
                            
                        }break;
                case 1: switch (opt)
                        {
                            case 0: if (objEntity.tuoi >= 19) kq = " Nu duoc phep tham gia";
                                else kq = "Nu khong duoc phep tham gia"; break;
                            case 1: kq = " Da lap gia dinh khong tham gia"; break;

                        } break;
            }



            
            return kq;
        }
    }
}
